package com.shen.server.mapper;

import com.shen.server.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HMF
 * @since 2022-04-10
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 获取所有部门
     * @date: 2022/4/19
     * @return
     */
    List<Department> getAlldepts(@Param ("parentId") Integer parentId);

    /**
     * 添加一个部门
     * @date: 2022/4/19
     * @param: department
     * @return
     */
    void addDept(Department department);

    /**
     * 删除一个部门
     * @date: 2022/4/19
     * @return
     */
    void deleteDept(Department department);
}
